#include "vxcrosshairitem.h"

VxCrosshairItem::VxCrosshairItem(QGraphicsItem *parent) :
		QGraphicsItemGroup::QGraphicsItemGroup(parent)
{
	_hline = new QGraphicsLineItem(-1000, 0, 1000, 0);
	_vline = new QGraphicsLineItem(0, -1000, 0, 1000);

	_hline->setPen(QPen(QColor(0xdf, 0xe0, 0xf1, 180)));
	_vline->setPen(QPen(QColor(0xdf, 0xe0, 0xf1, 180)));

	addToGroup(_hline);
	addToGroup(_vline);

	setZValue(0xffffff);

	//connect(VxMouseTransmitter::instance(), SIGNAL(mouseMove(QPoint*)), this, SLOT(_mouseMove(QPoint*)));

}

void VxCrosshairItem::mouseMove(QPoint* globalPos)
{
//	scene()->v
//	setPos(msevent->posF());
}


bool VxCrosshairItem::sceneEvent(QEvent *event)
{
	qDebug() << event->type();
	return QGraphicsItemGroup::sceneEvent(event);
}
